document.domain = "tarsadata.com";
function SysContainerApi(){
  if(top.window.___zxApi__==null)return null;
  const info = {
    ...top.window.___zxApi__,
    fetchParam:()=>{
      return top.window.___zxApi__.getParam(window.location.href);
    }
  }
  return info;
}
/**
 * SysContainerApi()函数返回接口内容
 * 
 //打开的窗体类型
  declare type InnerComp ={
    type:"comp"
    extData:{
      comp:(type:'Phone'|'PC'|'WX')=>()=>void
      params:{[key:string]:any}
    }
  }
 * //窗体之间消息通信
  message(winId:string,type:string,params?:any):void;
  
  //打开窗体
  openWin(param:{
    title:string
    id:string
    icon:string
  }&(InnerComp)):void;

  //打开模态对话框
  openModel(param:{
    title:string
    id:string
    icon:string
  }&(InnerComp)):void;

  //关闭窗体
  close(id:string):void;

  //提醒消息
  notify(type:"success"|"error"|"warning",title:string,message:string):void;
  //获取菜单
  fetchMenu(id?:string):any[];
  //查看资源权限
  hasResouce(resource:string[]):boolean[]

  //订阅推送信息
  subscribe(events:string[],winId:string,call:(busiKey:string,msgData:any)=>void):void;
 * 
 * 
 * 
 * 
 */